import axios from '@/libs/api.request'

/**
 * 获取订单列表
 * @nickname 昵称
 * @id 订单主键
 * @changeType 订单类型
 */
export const getOrderList = ({ nickname, id, changeType, pageId }) => {
  const data = {
    nickname,
    id,
    changeType,
    pageId
  }
  return axios.request({
    url: 'Order/getOrderList',
    data,
    method: 'post'
  })
}

/**
 * 获取订单详情
 * @id 订单主键
 */
export const getOrderDetail = (id) => {
  return axios.request({
    url: 'Order/getOrderDetail',
    data: { id: id },
    method: 'post'
  })
}
